import request from '/@/utils/request';

export function fetchList(query) {
    return request({
      url: '/admin/app/page',
      method: 'get',
      params: query
    })
  }
  
  export function addObj(obj) {
    return request({
      url: '/admin/app',
      method: 'post',
      data: obj
    })
  }
  
  export function getObj(id) {
    return request({
      url: '/admin/app/' + id,
      method: 'get'
    })
  }
  
  export function delObj(id) {
    return request({
      url: '/admin/app/' + id,
      method: 'delete'
    })
  }
  
  export function putObj(obj) {
    return request({
      url: '/admin/app',
      method: 'put',
      data: obj
    })
  }